<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="renderer" content="webkit">
		<title>网站配置</title>
		<meta name="keywords" content="">
		<meta name="description" content="">
		<!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
		<link rel="shortcut icon" href="favicon.ico">
		<link href="/Application/Admin/View//Public/static/css/bootstrap.min.css" rel="stylesheet">
		<link href="/Application/Admin/View//Public/static/css/font-awesome.min.css" rel="stylesheet">
		<link href="/Application/Admin/View//Public/static/css/animate.css" rel="stylesheet">
		<link href="/Application/Admin/View//Public/static/css/style.css" rel="stylesheet">
		<!--表单元素css-->
		<link href="/Application/Admin/View//Public/static/css/plugins/iCheck/custom.css" rel="stylesheet">

	</head>

	<body class="fixed-sidebar full-height-layout gray-bg">
		<div id="wrapper">
			<!--左侧导航开始-->
			<nav class="navbar-default navbar-static-side" role="navigation">
	<div class="nav-close"><i class="fa fa-times-circle"></i></div>
	<div class="sidebar-collapse">
		<ul class="nav" id="side-menu">
			<li class="nav-header">
				<div class="dropdown profile-element">
					<a data-toggle="dropdown" class="dropdown-toggle" href="#">
						<span class="clear">
                                    <span class="block m-t-xs" style="font-size:20px;">
                                        <i class="fa fa-area-chart"></i>
                                        <strong class="font-bold">管理系统</strong>
                                    </span>
						</span>
					</a>
				</div>
				<div class="logo-element">管理系统</div>
			</li>
			<li>
				<a class="J_menuItem" href="<?php echo U('index/index');?>">
					<i class="fa fa-home"></i>
					<span class="nav-label">主页</span>
				</a>
			</li>
			<li class="line dk"></li>
			<li>
				<a href="<?php echo U('member/index');?>">
					<i class="fa fa-user"></i>
					<span class="nav-label">会员管理</span>
				</a>
			</li>
			<li class="line dk"></li>
			<li>
				<a href="<?php echo U('admin/index');?>">
					<i class="fa fa-users"></i>
					<span class="nav-label">后台用户</span>
				</a>

			</li>
			<li class="line dk"></li>
			<li>
				<a href="<?php echo U('list/index');?>">
					<i class="fa fa-folder"></i>
					<span class="nav-label">应用列表</span>
				</a>
			</li>
			<li class="line dk"></li>
			<li>
				<a href="<?php echo U('Config/index');?>">
					<i class="fa fa-cogs"></i>
					<span class="nav-label">网站配置</span>
				</a>
			</li>
			<li class="line dk"></li>
			<li>
				<a href="<?php echo U('jubao/index');?>">
					<i class="fa fa-envelope-o"></i>
					<span class="nav-label">举报信箱</span>
				</a>
			</li>
			<li class="line dk"></li>
			<li>
				<a href="<?php echo U('ticket/index');?>">
					<i class="fa fa-file-o"></i>
					<span class="nav-label">工单列表</span>
				</a>
			</li>




			<li class="line dk"></li>
			<li>
				<a href="<?php echo U('Articles/advertisement');?>">
					<i class="fa fa-file-o"></i>
					<span class="nav-label">广告</span>
				</a>
			</li>
			<li class="line dk"></li>
			<li>
				<a href="<?php echo U('Download/index');?>">
					<i class="fa fa-file-o"></i>
					<span class="nav-label">套餐设置</span>
				</a>
			</li>
		</ul>
	</div>
</nav>
			<!--左侧导航结束-->
			<!--右侧部分开始-->
			<div id="page-wrapper" class="gray-bg dashbard-1" style="height: auto;">
				<nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
	<ul class="nav navbar-top-links navbar-right">
		<li class="dropdown">
			<a href="<?php echo U('login/delcache');?>" class="dropdown-toggle count-info"><i class="fa fa-check"></i> 清除缓存</a>
		</li>
		<li class="dropdown">
			<a href="<?php echo U('login/logout');?>" class="dropdown-toggle count-info"><i class="fa fa-power-off"></i> 退出</a>
		</li>
	</ul>
</nav>
				<div class="row J_mainContent" id="content-main">
					<div class="col-sm-12">
						<div class="ibox float-e-margins">
							<div class="ibox-title">
								<h5>系统设置 <small></small></h5>
							</div>
							<div class="ibox-content">
								<form action="<?php echo U('config/index');?>" method="post" class="form-horizontal">
									<div class="form-group">
										<label class="col-sm-2 control-label">新用户默认上传空间大小(MB)</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="allowsize" placeholder="allowsize" value="<?php echo ($info["allowsize"]); ?>"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">新用户默认限制上传大小(MB)</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="singlesize" placeholder="singlesize" value="<?php echo ($info["singlesize"]); ?>"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">到期时间</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="tianshu" placeholder="tianshu" value="<?php echo (date('Y-m-d',$info["tianshu"])); ?>"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">上传类型</label>
										<div class="col-sm-10 checkbox i-checks">
											<label class="radio-inline">
          <input type="radio" name="uptype" id="uptype" value="1" <?php if($info["uptype"] == 1): ?>checked="checked"<?php endif; ?>>七牛</label>
										</div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">公共七牛－Access Key</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="ggaccesskey" placeholder="" value="<?php echo ($info["ggaccesskey"]); ?>"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">公共七牛－Secret Key</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="ggsecretkey" placeholder="" value="<?php echo ($info["ggsecretkey"]); ?>"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">公共七牛－空间名称</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="ggbucket" placeholder="" value="<?php echo ($info["ggbucket"]); ?>"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">公共七牛－七牛空间域名</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="ggdomain" placeholder="" value="<?php echo ($info["ggdomain"]); ?>"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">

									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">邮箱－SMTP</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="mail_smtp" placeholder="" value="<?php echo ($info["mail_smtp"]); ?>"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">邮箱－账号</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="mail_account" placeholder="" value="<?php echo ($info["mail_account"]); ?>"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">邮箱－密码</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="mail_pass" placeholder="" value="<?php echo ($info["mail_pass"]); ?>"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">邮箱－名称</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="mail_name" placeholder="" value="<?php echo ($info["mail_name"]); ?>"></div>
									</div>
									<div class="hr-line-dashed"></div>

									<div class="form-group">
										<label class="col-sm-2 control-label">文件大小Ｍ（用,号分隔）</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="filesizearr" placeholder="" value="<?php echo ($info["filesizearr"]); ?>"></div>
									</div>
									<div class="hr-line-dashed"></div>

									<div class="form-group">
										<label class="col-sm-2 control-label">文件大小对应下载次数（用,号分隔）</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="downnumarr" placeholder="" value="<?php echo ($info["downnumarr"]); ?>"></div>
									</div>
									<div class="hr-line-dashed"></div>


									<div class="form-group">
										<label class="col-sm-2 control-label">短信账号</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="smsaccount" placeholder="" value="<?php echo ($info["smsaccount"]); ?>"></div>
									</div>
									<div class="hr-line-dashed"></div>

									<div class="form-group">
										<label class="col-sm-2 control-label">短信密码</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="smspass" placeholder="" value="<?php echo ($info["smspass"]); ?>"></div>
									</div>
									<div class="hr-line-dashed"></div>

									<div class="form-group">
										<label class="col-sm-2 control-label">每日下载次数－账号绑定邮箱</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="freedownnum1" placeholder="" value="<?php echo ($info["freedownnum1"]); ?>"></div>
									</div>
									<div class="hr-line-dashed"></div>

									<div class="form-group">
										<label class="col-sm-2 control-label">每日下载次数－账号绑定手机</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="freedownnum2" placeholder="" value="<?php echo ($info["freedownnum2"]); ?>"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">每日下载次数－账号绑定邮箱+手机</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="freedownnum3" placeholder="" value="<?php echo ($info["freedownnum3"]); ?>"></div>
									</div>
									<div class="hr-line-dashed"></div>


									<div class="form-group">
										<div class="col-sm-4 col-sm-offset-2">
											<input type="hidden" name="id" value="<?php echo ($info["id"]); ?>">
											<button class="btn btn-info" type="submit">保存内容</button>
										</div>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--右侧部分结束-->

			<!-- 全局js -->
			<script src="/Application/Admin/View//Public/static/js/jquery.min.js"></script>
			<script src="/Application/Admin/View//Public/static/js/bootstrap.min.js"></script>
			<script src="/Application/Admin/View//Public/static/js/content.js"></script>
			<!-- iCheck -->
			<script src="/Application/Admin/View//Public/static/js/plugins/iCheck/icheck.min.js"></script>
			<script>
				$(document).ready(function() {
					$('.i-checks').iCheck({
						checkboxClass: 'icheckbox_square-green',
						radioClass: 'iradio_square-green',
					});
				});
			</script>
	</body>

</html>